#include <colors.h>

#ifndef __VIDEO_H
#define __VIDEO_H

#define SCREEN_WIDTH		320
#define SCREEN_HEIGHT	200

typedef struct bitmap {
	unsigned int width;
	unsigned int height;
	unsigned char *data;
} bitmap_t;

typedef struct rect {
	long x1, y1;
	long x2, y2;
} rect_t;

#endif

void init_dbl_buffer(void);
void update_screen(void);
void setpixel(bitmap_t *bmp, int x, int y, enum MonitorColor color);
void drawrect(bitmap_t *bmp, unsigned short x, unsigned short y, unsigned short x2, unsigned short y2, enum MonitorColor color);
void draw_bitmap_old(bitmap_t *bmp, int x, int y);
void line(int x1, int y1, int x2, int y2, enum MonitorColor color);
void polygon(int num_vertices, int *vertices, enum MonitorColor color);

